import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const Console = () => import('../view/Console')
const Client = () => import('../view/Client')

export default new Router({
  routes: [
    {
      path: '/',
      name: 'console',
      component: Console
    },
    {
      path: '/client',
      name: 'client',
      component: Client
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
